Skip to content

Instantly share code, notes, and snippets.

@jbosboom
jbosboom / pecumecu-TM10C-magic-barcodes-manual.md
Last active September 14, 2026 04:26
Magic barcodes from the manual for PecuMecu TM-10C Handheld 1D&2D Barcode Scanner (ASIN B0FP4Z5LGB)

Like most barcode scanners, the PecuMecu TM-10C scanner is configurable by scanning magic barcodes. A manual and quick-reference card are included with the scanner, but seemingly not posted online. Below is a table containing the data and an image of all barcodes in the manual. The data of all barcodes starts with a 0x80 byte, followed by the string "WSM", followed by 8 ASCII digits, followed by a period character. The images in this table were generated with qrencode. They are not identical to the barcodes in the manual, but they represent the same data.

Action Data Barcode
Restore factory settings <U+80>WSM00020001. restore-factory-settings
USB keyboard mode[(USB descriptors from lsusb)](https://gist.github.com/jbosboom/649021a31b7f54a3178713c00a37d259#file-0-lsusb-pecumecu-tm10c-barcode
@jetfir3
jetfir3 / download_workstation.sh
Last active September 14, 2026 04:16
Download VMware Workstation for Linux without a Broadcom Account
#!/usr/bin/env bash
# Download VMware Workstation for Linux
# Handles legacy versions (12.x - 17.6.3) from Cloudflare CDN cache and
# newer versions (17.6.4+) from Archive.org.
#
# Use '-k' to keep the CDN download file compressed, exiting after download. (Ignored for v17.6.4+)
# Use '-v <Version>' to specify desired version directly.
BASE_URL="https://softwareupdate-prod.broadcom.com/cds/vmw-desktop/"
@jetfir3
jetfir3 / download_workstation.ps1
Last active September 14, 2026 04:11
Download VMware Workstation for Windows without a Broadcom Account
<#
.SYNOPSIS
Download VMware Workstation Pro for Windows from Archive.org
.DESCRIPTION
This script downloads VMware Workstation installers directly from the archive.org VMware Workstation archive.
It allows for interactive menu selection or direct version specification.
.PARAMETER Version
Specifies the version of VMware Workstation to download (e.g., "17.6.3").
.PARAMETER Help
Displays the help information for the script and exits.
@Jaykul
Jaykul / Automatic Variables.md
Last active September 14, 2026 04:10
Magic Variables or Automatic Variables

PowerShell automatic variables are predefined variables that return information about the PowerShell environment, the current operation, and recent events. They're called automatic because they're maintained by PowerShell itself and update automatically as you use the shell. A few examples:

  • Error – A list of the most recent errors where $Error[0] is the last error.
  • $MyInvocation – Information about the current script or command, such as the name, parameters and parameter values.
  • $_ – Contains the current object in pipeline input

There are many more. In general, these variables cannot be set or modified directly by the user, and they're useful because they exist automatically and reliably to provide additional execution context in scripts and sessions.

For a complete list, see about_Automatic_Variables.

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Calendario Escolar SEP//2026-2027//ES-MX
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Calendario Escolar SEP 2026-2027
X-WR-TIMEZONE:America/Mexico_City
BEGIN:VEVENT
UID:sep-2026-2027-1@calendario-escolar
DTSTAMP:20260914T000000Z
@TorsteinOvstedal
TorsteinOvstedal / gist:5cabcaa6cc6fd86be9df00d524079e18
Created April 1, 2024 21:46
Dark Mode in Firefox's PDF reader (invert colors)
// Usage: Enter the JS snippet below into the web console (opened with Ctrl+Shift+K).
// Source: https://connect.mozilla.org/t5/ideas/dark-mode-for-embedded-pdf-viewer/idi-p/4932#link_30
window.PDFViewerApplication.pdfViewer.container.style.filter = "invert(1) grayscale(1)"
@abir-taheer
abir-taheer / instagram-follower-following.js
Last active September 14, 2026 04:06
"This is our community, this is our family, these are our friends." https://www.youtube.com/watch?v=gk7iWgCk14U&t=425s
if (window.location.origin !== "https://www.instagram.com") {
window.alert(
"Hey! You need to be on the instagram site before you run the code. I'm taking you there now but you're going to have to run the code into the console again.",
);
window.location.href = "https://www.instagram.com";
console.clear();
}
const fetchOptions = {
credentials: "include",
@davidbarkhuizen
davidbarkhuizen / baofeng_UV-5RE.md
Last active September 14, 2026 04:02
Baofeng uv-5re
@alsyundawy
alsyundawy / Microsoft-Office-For-MacOS.md
Last active September 14, 2026 03:55
Microsoft Office For MacOS

🖥️ Installer for Microsoft Office for macOS

Microsoft Office for macOS

image

Your ultimate resource for macOS Office installers, serializers, and troubleshooting.

Donate with PayPal Donate with Ko-fi Sponsor on GitHub Latest Version Maintenance Status [License](https://github.com/alsyun

@cielavenir
cielavenir / readme.md
Last active September 14, 2026 03:52
zoom sandbox-exec for macOS
  1. Download Zoom.pkg from https://zoom.us/download
  2. Extract it using https://www.timdoug.com/unpkg/
  3. Now you have Zoom/zoom.us.app
  4. Launch Zoom by zoom.sh Zoom/zoom.us.app/Contents/MacOS/zoom.us

caveats:

  • Zoom will fail to start meeting for the first time. Just launch again.
  • Zoom will tell that crash happened, but you should ignore it.